"use strict"
/** @param {import("egg").Application} app */
module.exports = app => {
	const Sequelize = app.Sequelize
	const sequelize = app.model

	let userLogin = sequelize.define("userLogin", {
		oid: {
			type: Sequelize.INTEGER,
			comment: " 当前用户的id",
		},
		login_time: {
			type: Sequelize.DATEONLY,
			get() {
				return Date.parse(this.getDataValue("login_time"))
			}
		},// 跳过第几条数据得到第几天的奖励数值
		aid: {
			type: Sequelize.INTEGER,
		}
	}, {
		tableName: "user_login",
		timestamps: false
	})
	return userLogin
}